﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Login.aspx.cs" Inherits="SES.CMS.Login" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
        function doClick(buttonName, e) {
            var key;
            if (window.event)
                key = window.event.keyCode;     //IE
            else
                key = e.which;     //firefox
            if (key == 13) {
                var btn = document.getElementById(buttonName);
                if (btn != null) {
                    btn.click();
                    event.keyCode = 0
                }
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="divLogin">
        <asp:Panel ID="pnlLogin" runat="server" style="margin-left:25px;">
            <p style="color: #3f71b0; font-weight: bold; font-size: 13px">
                Tên đăng nhập:</p>
            <p>
                <asp:TextBox ID="txtUserName" CssClass="txtLogin" runat="server" Width="220px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtUserName" Display="Dynamic" ErrorMessage="*" 
                    ValidationGroup="login"></asp:RequiredFieldValidator>
            </p>
            <p style="color: #3f71b0; font-weight: bold; font-size: 13px">
                Mật khẩu:
            </p>
            <p>
                <asp:TextBox ID="txtPass" CssClass="txtLogin" TextMode="Password" runat="server"
                    Width="220px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="txtPass" Display="Dynamic" ErrorMessage="*" 
                    ValidationGroup="login"></asp:RequiredFieldValidator>
            </p>
            <p>
                <asp:Button ID="btnLogin" CssClass="btnLogin" runat="server" Text="Đăng nhập" 
                    OnClick="btnLogin_Click" ValidationGroup="login" />
                <asp:Button ID="btnSignUp" CssClass="btnLogin" runat="server" Text="Đăng ký" OnClick="btnSignUp_Click" />
            </p>
            <br />
            <%--                <p><a href="#" style="color: Red;font-size: 14px;float: right;margin-right: 28px;">Quên mật khẩu?</a></p>--%>
            <p>
                <asp:Button ID="btnQuenMk" runat="server" Text="Quên mật khẩu?" OnClick="btnQuenMK_Click"
                    CssClass="buttonchange" />
            </p>
        </asp:Panel>
        <asp:Panel ID="pnEmail" runat="server" Visible="false">
            <table style="width: 100%;">
                <tr>
                    <td class="style1">
                    </td>
                    <td class="style2" style="font-size: 13px; width: 70px; color: #3f71b0;">
                        <asp:Label ID="Label2" runat="server" Text="Email : "></asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txtEmail" runat="server" Height="27px" placeholder="Email *" Width="200px"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail"
                            ErrorMessage="Sai định dạng Email!!!" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                            Display="Dynamic"></asp:RegularExpressionValidator>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                            ControlToValidate="txtEmail" ErrorMessage="*" ValidationGroup="email"></asp:RequiredFieldValidator>
                        <br />
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <p style="color: #ff0000; font-size: 13px">
                            (Nhập địa chỉ Email đã đăng ký với Website để được nhận lại mật khẩu mới)</p>
                    </td>
                </tr>
                <tr>
                    <td class="style1" colspan="3">
                        <asp:Button ID="btnMK" runat="server" CssClass="btnLogin" OnClick="btnGui_Click"
                            Text="Gửi" Width="122px" ValidationGroup="email" />
                        <p>
                            &nbsp;</p>
                    </td>
                </tr>
            </table>
        </asp:Panel>
    </div>
</asp:Content>
